package com.google.code.p.restrpc;

/**
 * @author dz
 */
public interface ServiceNode {
    
    /**
     * @return
     */
    public String getAddress();
    
    /**
     * @return
     */
    public int getPort();
    
    /**
     * @return
     */
    public String getContextPath();
    
    /**
     * @return
     */
    public boolean isAvailable();
    
    /**
     * 
     */
    public boolean enable();
    
    /**
     * 
     */
    public boolean disable();
    
    /**
     * @return
     */
    public int getWeight();
    
}
